package lte

type Cell struct {
	NofPrb  int    `json:"nofprb"`
	NofPort int    `json:"nofport"`
	ID      int    `json:"cellid"`
	CP      string `json:"cp"`
}

func NewCell(cid, nof_ports, nof_prb int, cp string) *Cell {
	return &Cell{
		NofPrb:  nof_prb,
		NofPort: nof_ports,
		ID:      cid,
		CP:      cp,
	}
}

func (c *Cell) CRS() *CRS {
	crs := NewCRS(c.ID, c.NofPort, c.NofPrb, c.CP)
	return &crs
}

func (c *Cell) RefSignalCSNofRE(port_id int) int {
	return refsignal_cs_nof_symbols(port_id) * 2 * c.NofPrb
}
